import { Component, OnInit } from '@angular/core';
import { AuthService } from 'src/app/service/auth.service';

@Component({
  selector: 'app-dashboard',
  templateUrl: './dashboard.component.html',
  styleUrls: ['./dashboard.component.less']
})
export class DashboardComponent implements OnInit {
  date: number = new Date().getTime();

  constructor(
    private authService: AuthService
  ) { }

  ngOnInit() {
    setInterval(() => {
      this.date += 1000
    }, 1000)
  }

  get user() {
    return this.authService.user;
  }
}
